package com.troila.cloud.simplify;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;

import com.troila.cloud.simplify.filter.WechatInterceptor;

@SpringBootApplication
public class QuestionWebApplication {

	public static void main(String[] args) {
		SpringApplication.run(QuestionWebApplication.class);
	}
	
    /** 
     * 配置拦截器 
     * @author lance 
     * @param registry 
     */  
    public void addInterceptors(InterceptorRegistry registry) {  
        registry.addInterceptor(new WechatInterceptor()).addPathPatterns("/front/**");  
    } 

}
